package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 处方药品表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "处方药品表")
public class PresPretrialDrugs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 处方已审药品表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 处方编码
     */
    @Column(length = 20, comment = "处方编码")
    private String tencode;

    /**
     * 药品编号
     */
    @Column(length = 20, comment = "药品编号")
    private String drugnum;

    /**
     * 药品名称
     */
    @Column(length = 20, comment = "药品名称")
    private String herbName;

    /**
     * 规格
     */
    @Column(length = 20, comment = "规格")
    private String specification;

    /**
     * 使用注意事项
     */
    @Column(length = 20, comment = "注意事项, 脚注")
    private String drugdescription;

    /**
     * 单剂量 必填
     * 传入kg时请自行换算成g
     */
    @Column(decimalLength = 3, comment = "单剂量")
    private Double drugallnum;

    /**
     * 单位
     */
    @Column(length = 20, comment = "单位")
    private String unit;

    /**
     * 药品原价
     */
    @Column(decimalLength = 5, comment = "原价")
    private Double originalPrice;


    /**
     * 单价 必填
     */
    @Column(decimalLength = 5, comment = "单价")
    private Double retailprice;

    /**
     * 折扣价 必填
     */
    @Column(decimalLength = 5, comment = "折扣价")
    private Double discountPrice;

    /**
     * 状态
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态")
    private Integer status;

    /**
     * 煎煮法
     */
    @Column(comment = "煎煮法")
    private String decocting;

    /**
     * 药材id 第三方
     */
    @Column(comment = "药材id 第三方")
    private String drugId;

    /**
     * 颗粒类型
     */
    @Column(comment = "颗粒类型")
    private String klType;
}
